package tests;

import common.Utils;
import org.openqa.selenium.By;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2025-03-31
 * Time:13:33
 */
public class Exie extends Utils {
    public static String url="http://127.0.0.1:9580/index.html";

    public Exie() {
        super(url);
    }
    public void ExitSuc() throws IOException, InterruptedException {
        driver.findElement(By.cssSelector("body > div.page > header.navbar.navbar-expand-md.navbar-light.d-print-none > div > div > div.nav-item.dropdown > a")).click();
        driver.findElement(By.cssSelector("#index_user_logout")).click();
        Thread.sleep(3000);
        getScreenShot(getClass().getName());
        driver.quit();
    }
}
